package com.gxa.guahao01.mapper;

import com.gxa.guahao01.pojo.HuanZheJiuZhenKa;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 患者就诊卡(HuanZheJiuZhenKa)表数据库访问层
 *
 * @author xyc
 * @since 2021-03-16 16:52:18
 * @version 1.0
 */
public interface HuanZheJiuZhenKaMapper {

    /**
     * 查询所有数据
     * @return  返回所有数据
     */
    List<HuanZheJiuZhenKa> chaXunAll();



    /**
     * 新增数据
     *
     * @param huanZheJiuZhenKa 实例对象
     */
    void xinZeng(HuanZheJiuZhenKa huanZheJiuZhenKa);
    /**
     * 根据卡号查询id
     *
     * @param huanZheKaHao 患者卡号
     */
    int chaXunIdByKaHao(@Param("huanZheKaHao")String huanZheKaHao);

    /**
     * 修改数据
     *
     * @param huanZheJiuZhenKa 实例对象
     * @return 影响行数
     */
    int gengXinById(HuanZheJiuZhenKa huanZheJiuZhenKa);
    /**
     * 通过患者卡号查询数据
     *
     * @param huanZheKaHao,shenFenZheng,xingMing,shouJiHao,kaiShiShiJian,jieShuShiJian
     * @return 影响行数
     */
    List<HuanZheJiuZhenKa> chaXunByKaHao(@Param("huanZheKaHao")String huanZheKaHao,
                                         @Param("shenFenZheng")String shenFenZheng,
                                         @Param("xingMing")String xingMing,
                                         @Param("shouJiHao")String shouJiHao,
                                         @Param("kaiShiShiJian") String kaiShiShiJian,
                                         @Param("jieShuShiJian")String jieShuShiJian );


}